package com.Ajava1801D.设计模式.策略模式;

import com.Ajava1801D.设计模式.策略模式.CeLueFactoy;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

/**
 * @author: LCG
 * 作者: LCG
 * 日期: 2020/10/12  16:13
 * 描述:
 */
@Component
public class CeLue0  implements CeLueInterface,InitializingBean {
    @Override
    public void test(int stats) {
        System.out.println("=======初始化========");
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        CeLueFactoy.register(0,this);
    }
}
